Fix/agentflow Add support for XML tag in markdown input and render markdown conditionally#6145
Fix/agentflow Add support for XML tag in markdown input and render markdown conditionally#6145
Conversation
There was a problem hiding this comment.
Code Review
This pull request implements a system to preserve XML and HTML tags during TipTap's markdown serialization and deserialization processes. It introduces new utilities for escaping and unescaping tags, refactors existing editor helpers into a centralized xmlTagUtils.ts file, and updates the RichTextEditor and VariableInput components to utilize these utilities. Review feedback highlights opportunities to deduplicate content loading logic within the editor components and suggests seeking a more type-safe approach for the cache manager configuration in the server package.
| * dependencies, and the false-positive/negative risk for agentflow node inputs | ||
| * is negligible (users don't normally write raw HTML into prompt fields). | ||
| */ | ||
| export function isHtmlContent(content: unknown): boolean { |
There was a problem hiding this comment.
nit: why do we delete this file and replace with a new one (xmlTagUtils) completely instead of porting the changes and show diff from xmlTagUtils to here?
There was a problem hiding this comment.
Moved all the changes from editorUtils to xmlTagUtils to have the same naming convention as v2
…/FlowiseAI/Flowise into fix/agentflow-xml-limit-markdown
Ported #6061 and #6095 from legacy UI to agentflow
Custom.XML.tags.mov
Limit.HTML.tags.mov